<%@page import="com.qdu.dao.Recommend"%>
<%@page import="java.text.NumberFormat"%>
<%@page import="java.util.List"%>
<%@page import="java.*"%>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML>
<html>
    <head><title>登陆页面</title>
        <style type=text/css>
            body {
                margin-top: 0px; margin-left: 0px
            }
            .style1 {
                color: #680c0c
            }
        </style>
        <%
        String message = (String)request.getAttribute("message");
                if(message == null){
                                message = "";
                }
                if (!message.trim().equals("")){
                        out.println("<script language='javascript'>");
                        out.println("alert('"+message+"');");
                        out.println("</script>");
                }
                request.removeAttribute("message");
        %>
</head>
        <%
                String name=(String)session.getAttribute("name");
                if(name==null){	
        %>
    <body text=#000000 bgColor=#efefef>
        <form name=form_login onSubmit="return check()" action="ulo" method=post>
              <table cellSpacing=0 cellPadding=0 width=515 align=center border=0>
                  
                <tr><input type=hidden name=method value=user>
                <td width=113><img height=29 src="img/hc_index_13.gif" 
                                   width=110></td>
                <td width=25>
                    <div align=center>ID</div></td>
                <td width=101><input onmouseover=this.focus() 
                                     style="border-right: #999999 1px solid; border-top: #999999 1px solid; font-size: 9pt; border-left: #999999 1px solid; border-bottom: #999999 1px solid; background-color: #f9fcff" 
                                     onfocus=this.select() size=14 name=username></td>
                <td width=29>
                    <DIV align=center>PS</div></td>
                <td width=97><INPUT onmouseover=this.focus() 
                                    style="border-right: #999999 1px solid; border-top: #999999 1px solid; font-size: 9pt; border-left: #999999 1px solid; border-bottom: #999999 1px solid; background-color: #f9fcff" 
                                    onfocus=this.select() type=password size=14 name=password></td>
                <td width=31>
                    <div align=center><input type=submit  value="登录"></div></td>
                <td width=63>
                    <div align=center><font color=#680c0c><a href="/J02_T13_P04/reg.jsp" target=_blank>注册会员</a></font></div></td>
                <td width=56>
                    <div align=center><font color=#680c0c><a href="/J02_T13_P04/lost.jsp" target=_blank>忘记密码</a></font></div></td></tr></table>
        </form>
    </body>
    <%
        }
else{
            response.sendRedirect("login2.jsp");
        } %>
</html>
